package org.huoran.sakamichi.study.S_20170605_annotation.controller;

import org.huoran.sakamichi.study.S_20170605_annotation.service.AnnService;
import org.huoran.sakamichi.main.util.ResultBean;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import javax.annotation.Resource;

@Controller
@RequestMapping({"/ann"})
public class AnnController {

    @Resource
    private AnnService annService;

    @ResponseBody
    @RequestMapping({"/test"})
    public ResultBean getTestAnn(){
        return this.annService.testAnn();
    }
}
